package com.example.myproject.dto.message;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class ConversationDTO {
    private Long id;
    private Long user1Id;
    private Long user2Id;
    private String user1Name;
    private String user2Name;
    private String user1Avatar;
    private String user2Avatar;
    private LocalDateTime lastMessageTime;
    private Integer unreadCountUser1;
    private Integer unreadCountUser2;
    private String lastMessage;  // 新增字段
    private Integer unreadCount;  // 当前用户的未读消息数
}